﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace System.Web.Mvc
{
    public static class Url
    {
        /// <summary>
        /// 将虚拟（相对）路径转换为应用程序绝对路径。
        /// </summary>
        /// <param name="helper"></param>
        /// <param name="contentPath"></param>
        /// <returns></returns>
        public static string ContentResource(this UrlHelper helper, string contentPath)
        {
            return yule.Mvc.MvcPath.ResourcePath + contentPath;
        }

    }
}